﻿using System;
using System.Collections.Generic;
using System.Text;
using ATSModel;
using ATSIDAL;

namespace ATSBLL
{
    public class TCalibration : BaseService<TCalRecordInfo>
   {
        private static readonly ITCalibration dal = DALFactory.DataAccess.CreateTCalibration();
       
        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<TCalRecordInfo> GetCalibrationsByIID(String InstrumentID)
        {
            return dal.GetCalibrationsByIID(InstrumentID);
        }
    
        public IList<TCalRecordInfo> GetCalibrationsbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetCalibrationsbyDT(starttime, stoptime);
        }
   }
}
